package com.netease.a.a;

import android.text.format.Time;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public final class c
{
  private static final String a = "([0-9]{1,2})[- ]([A-Za-z]{3,3})[- ]([0-9]{2,4})[ ]([0-9]{1,2}:[0-9][0-9]:[0-9][0-9])";
  private static final String b = "[ ]([A-Za-z]{3,3})[ ]+([0-9]{1,2})[ ]([0-9]{1,2}:[0-9][0-9]:[0-9][0-9])[ ]([0-9]{2,4})";
  private static final Pattern c = Pattern.compile("([0-9]{1,2})[- ]([A-Za-z]{3,3})[- ]([0-9]{2,4})[ ]([0-9]{1,2}:[0-9][0-9]:[0-9][0-9])");
  private static final Pattern d = Pattern.compile("[ ]([A-Za-z]{3,3})[ ]+([0-9]{1,2})[ ]([0-9]{1,2}:[0-9][0-9]:[0-9][0-9])[ ]([0-9]{2,4})");

  public static Long a(String paramString)
  {
    int i = 1;
    Matcher localMatcher1 = c.matcher(paramString);
    int j;
    int m;
    Object localObject;
    int n;
    if (localMatcher1.find())
    {
      int i1 = b(localMatcher1.group(i));
      j = c(localMatcher1.group(2));
      m = d(localMatcher1.group(3));
      localObject = e(localMatcher1.group(4));
      n = i1;
      if (m < 2038)
        break label197;
      m = 2038;
      j = 0;
    }
    while (true)
    {
      Time localTime = new Time("UTC");
      localTime.set(((a)localObject).c, ((a)localObject).b, ((a)localObject).a, i, j, m);
      return Long.valueOf(localTime.toMillis(false));
      Matcher localMatcher2 = d.matcher(paramString);
      if (localMatcher2.find())
      {
        j = c(localMatcher2.group(i));
        int k = b(localMatcher2.group(2));
        a locala = e(localMatcher2.group(3));
        m = d(localMatcher2.group(4));
        localObject = locala;
        n = k;
        break;
      }
      throw new IllegalArgumentException();
      label197: i = n;
    }
  }

  private static int b(String paramString)
  {
    if (paramString.length() == 2);
    for (int i = 10 * ('￐' + paramString.charAt(0)) + ('￐' + paramString.charAt(1)); ; i = '￐' + paramString.charAt(0))
      return i;
  }

  private static int c(String paramString)
  {
    int i = 0;
    switch (-291 + (Character.toLowerCase(paramString.charAt(0)) + Character.toLowerCase(paramString.charAt(1)) + Character.toLowerCase(paramString.charAt(2))))
    {
    default:
      throw new IllegalArgumentException();
    case 10:
      i = 1;
    case 22:
    case 29:
    case 32:
    case 36:
    case 42:
    case 40:
    case 26:
    case 37:
    case 35:
    case 48:
    case 9:
    }
    while (true)
    {
      return i;
      i = 2;
      continue;
      i = 3;
      continue;
      i = 4;
      continue;
      i = 5;
      continue;
      i = 6;
      continue;
      i = 7;
      continue;
      i = 8;
      continue;
      i = 9;
      continue;
      i = 10;
      continue;
      i = 11;
    }
  }

  private static int d(String paramString)
  {
    int j;
    int i;
    if (paramString.length() == 2)
    {
      j = 10 * ('￐' + paramString.charAt(0)) + ('￐' + paramString.charAt(1));
      if (j >= 70)
        i = j + 1900;
    }
    while (true)
    {
      return i;
      i = j + 2000;
      continue;
      if (paramString.length() == 3)
      {
        i = 1900 + (100 * ('￐' + paramString.charAt(0)) + 10 * ('￐' + paramString.charAt(1)) + ('￐' + paramString.charAt(2)));
        continue;
      }
      if (paramString.length() == 4)
      {
        i = 1000 * ('￐' + paramString.charAt(0)) + 100 * ('￐' + paramString.charAt(1)) + 10 * ('￐' + paramString.charAt(2)) + ('￐' + paramString.charAt(3));
        continue;
      }
      i = 1970;
    }
  }

  private static a e(String paramString)
  {
    int i = '￐' + paramString.charAt(0);
    int j;
    if (paramString.charAt(1) != ':')
    {
      int i6 = i * 10;
      j = 2;
      i = i6 + ('￐' + paramString.charAt(1));
    }
    while (true)
    {
      int k = j + 1;
      int m = k + 1;
      int n = 10 * ('￐' + paramString.charAt(k));
      int i1 = m + 1;
      int i2 = n + ('￐' + paramString.charAt(m));
      int i3 = i1 + 1;
      int i4 = i3 + 1;
      int i5 = 10 * ('￐' + paramString.charAt(i3));
      (i4 + 1);
      return new a(i, i2, i5 + ('￐' + paramString.charAt(i4)));
      j = 1;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.a.a.c
 * JD-Core Version:    0.6.0
 */